import _axios from '@/utils/request'

// import store from '@/store'

export default class HomeWork {
  /**
   * 添加家庭作业
   * @method post
   */
  static async HomeWorkSave(params) {
    const groups = await _axios({
      method: 'post',
      url: '/api/HomeWork/Save',
      params,
      handleError: true
    })
    return groups
  }
  /**
   * 作业历史列表接口
   * @method get
   */
  static async HomeWorkList(params) {
    const groups = await _axios({
      method: 'get',
      url: '/api/HomeWork/Index',
      params,
      handleError: true
    })
    return groups
  }
  /**
   * 历史作业详情页接口
   * @method get
   */
  static async HomeWorkGet(params) {
    const groups = await _axios({
      method: 'get',
      url: '/api/HomeWork/Get',
      params,
      handleError: true
    })
    return groups
  }




}
